<template>
	<view>
		<view class="tabbar">
			<block v-for="(item,index) in tabbarList" :key="index">
				<view class="tabbar-item" @tap="$emit('onClick',index)">
					<image class="tabbar-img" :src="item.src" mode="widthFix"></image>
				</view>
			</block>
		</view>	
	</view>
</template>

<script>
	export default {
		props: {
			tabbarList: {
				type: Array,
				required: true
			}
		}
	}
</script>

<style scoped lang="less">
	.tabbar{
		width: 100%;
		position: fixed;
		left: 0;
		bottom: 0;
		// height: 230rpx;
		height: 15vh;
		padding: 0 108rpx;
		box-sizing: border-box;
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		background: linear-gradient(180deg, rgba(114, 180, 255, 0.9), rgba(73, 153, 235, 0.9), rgba(43, 125, 209, 0.9));
		box-shadow: 0px 0px 1rpx 0px rgba(27, 67, 140, 0.64);
	}
	.tabbar-item{
		// width: 25% !important;
		display: flex;
		align-items: center;
		
		width: 460rpx;
		height: 148rpx;
	}
	.tabbar-img{
		width: 460rpx;
		height: 148rpx;
	}
</style>
